const express = require("express");
const bodyParser = require("body-parser");

const app = express();

app.use(bodyParser.urlencoded({ extended: false }));
app.use(express.static("./www"));

app.get("/index", (req, res, next)=>{
    console.log(req.query);
    res.send("1");
})
app.post("/index", (req, res, next)=>{
    console.log(req.body);
    res.send("2");
})

app.listen(3000);


